package com.nts.bupna.model;

import static com.nts.bupna.util.StringUtil.unescape;

public class Assign implements Activity {
    private String from;
    private String to;
    private String expr;

    public String getFrom() {
        return from;
    }
    public void setFrom(final String from) {
        this.from = from;
    }
    public String getTo() {
        return to;
    }
    public void setTo(final String to) {
        this.to = to;
    }

    public String getExpr() {
        return expr;
    }

    public void setExpr(String expr) {
        this.expr = unescape(expr);
    }

    @Override
    public ActivityType getActivityType() {
        return ActivityType.ASSIGN;
    }

    @Override
    public String toString() {
        return "Assign [from=" + from + ", to=" + to + "]";
    }
}
